package com.itchen;

import com.itchen.dao.UserDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author げっしょく
 * @date 2021/9/7
 */
public class RunFunction2 {
    public static void main(String[] args) {
        ApplicationContext cex = new ClassPathXmlApplicationContext("applicationContext.xml");

        UserDao bean = (UserDao) cex.getBean("userDao");

        bean.save();

    }
}
